/**
 * Copyright 2015 Qiyi Inc. All rights reserved.
 *
 * @file:   Ancestor.Dao.js
 * @path:   js-src/Ancestor/
 * @desc:   负责本模块的远程调用的静态对象
 * @author: jiegang@qiyi.com
 * @date:   2015-01-11
 */
qui(function(require, exports, module) {


    ///import js-src/lib/
    ///import js-src/com/
    Ancestor.Config = (function() {
        var REQUEST_FAIL = "接口响应超时,请稍后再试！";
        var QICHUAN = {

            //image_requestURL: 'http://upload.iqiyi.com/request_image_upload',
            image_requestURL_test: 'http://upload.iqiyi.com/request_image_upload',

            image_uploadURL: 'http://upload.iqiyi.com/image_upload',
            image_uploadURL_inner: 'http://upload.qiyi.domain/image_upload',
            image_uploadURL_test: 'http://upload.iqiyi.com/image_upload',

            deviceId: 'LEGO-uploader',
        };

        var EPG_AUTH = {

            From: 'frontend', // 来源
            key: '7dpHGKMy4hAh3DmC' // 密钥

        };

        var CONFIGS_API = {
            url: '/api/configs'
        };

        // 直转点 频道名称
        var CATEGORY_NAME = [];

        // 直播类型
        var LIVE_TYPE = [];

        // 频道分类
        var CHANNEL_TYPE = [];


        // 日志分类
        var LOG_TYPE = [];

        // 备播库标色提示
        var APC_WARNING = {
            NORMAL: 'black',
            RED: 'red',
            ORANGE: '#ffa800'
        };

        var PLATFORM_TYPE = null;
        var PLATFORM_REFER = null;

        // 奇谱url
        var QIPU_URL = (function() {
            var qipuUrl = auth.dev() ? 'http://qipu-test.qiyi.domain/int/entity/nocache/${QIPUID}.json' : 'http://qipu.qiyi.domain/int/entity/nocache/${QIPUID}.json';
            return qipuUrl;
        })();

        return {
            EPG_AUTH: EPG_AUTH,
            LIVE_TYPE: LIVE_TYPE,
            CHANNEL_TYPE: CHANNEL_TYPE,
            QICHUAN: QICHUAN,
            CONFIGS_API: CONFIGS_API,
            LOG_TYPE: LOG_TYPE,
            APC_WARNING: APC_WARNING,
            PLATFORM_REFER: PLATFORM_REFER,
            PLATFORM_TYPE: PLATFORM_TYPE,
            QIPU_URL: QIPU_URL,
            REQUEST_FAIL: REQUEST_FAIL,
            CATEGORY_NAME:CATEGORY_NAME
        };


    })();

});